package com.lsege.service.backstage;

import com.lsege.entity.backstage.Activity;
import com.lsege.mapper.backstage.ActivityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/7/8.
 */
@Service
public class ActivityServiceImpl implements ActivityService {
    @Autowired
    ActivityMapper activityMapper;
    @Override
    public Long queryStatusByTitle(Activity activity) {
        return activityMapper.queryStatusByTitle(activity);
    }

    @Override
    public void startActivity(Activity activity) {
        activityMapper.startActivity(activity);
    }

    @Override
    public List<Activity> queryActivityList() {
        return activityMapper.queryActivityList();
    }

    @Override
    public Long queryActivityCount() {
        return activityMapper.queryActivityCount();
    }

    @Override
    public void endActivity(Activity activity) {
        activityMapper.endActivity(activity);
    }
}
